home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / s / sysspeedv1.11.lha / sysspeed / Install next >
Text File  |  1995-09-25  |  7KB  |  369 lines

  1.  
  2. ;================================= ENGLISH ==================================
  3.  
  4. (set languages-default 1)
  5.  
  6. (set #bad-kick "You must be using Kickstart 2.04+ to install SysSpeed")
  7.  
  8. (set #copy-main "Copying SysSpeed...")
  9.  
  10. (set #copy-datas "Copying SysSpeed datafiles...")
  11.  
  12. (set #copy-doc "Copying Documentation...")
  13.  
  14. (set #copy-reqtools-library "Copying reqtools.library to Libs: ...")
  15.  
  16. (set #copy-powerpacker-library "Copying powerpacker.library to Libs: ...")
  17.  
  18. (set #copy-xpkmaster-library "Copying xkpmaster.library to Libs: ...")
  19.  
  20. (set #copy-shri-library "Copying xpkSHRI.library to Libs:Compressors/ ...")
  21.  
  22. (set #install-select
  23.     (cat
  24.         "Please select the different parts of SysSpeed that you"
  25.         " would like to install:"
  26.     )
  27. )
  28.  
  29. (set #install-select-help
  30.     (cat
  31.         "SysSpeed: The Ultimate Speedtester...\n"
  32.     )
  33. )
  34.  
  35. (set #doc-select
  36.     (cat
  37.         "Please select your favourite documentation that you would"
  38.         " like to install:"
  39.     )
  40. )
  41.  
  42. (set #doc-select-help
  43.     (cat
  44.         "Select you favourite documentation!"
  45.     )
  46. )
  47.  
  48. (set #item-main "SysSpeed Mainprogram")
  49.  
  50. (set #item-datas "SysSpeedDatas")
  51.  
  52. (set #item-doc "Documentation")
  53.  
  54. (set #item-libraries "Libraries")
  55.  
  56. (set #where-main "Where would you like to install the SysSpeed mainprogram?")
  57.  
  58. (set #where-main-help
  59.     (cat
  60.         "This is the destination directory for the SysSpeed mainprogram"
  61.     )
  62. )
  63.  
  64. (set #where-datas "Where would you like to install Datas for SysSpeed ?")
  65.  
  66. (set #where-datas-help
  67.     (cat
  68.         "This is the destination directory of Datas for SysSpeed!"
  69.     )
  70. )
  71.  
  72. (set #where-doc "Where would you like to install the Documentations?")
  73.  
  74. (set #install-exit
  75.     (cat
  76.         "Thank you for installing SysSpeed ..."
  77.     )
  78. )
  79.  
  80. (set #install-start
  81.     (cat
  82.         "\nWelcome to the installation of SysSpeed version\n\n"
  83.         " .###       .###  \n"
  84.         "#####      #####  \n"
  85.         "  ###        ###  \n"
  86.         "  ###        ###  \n"
  87.         "  ###        ###  \n"
  88.         "  ###   ##   ###  \n"
  89.         "####### ## #######\n\n"
  90.         "Written and performed by LSi/ALiENDESiGN\n"
  91.         "Installscript 1.0 by cLYDE rADCLIFFE/ALiENDESiGN!\n"
  92.     )
  93. )
  94.  
  95. ;===[ German Documentation ]=================================================
  96.  
  97. (if (= @language "deutsch")
  98.  (
  99. (set languages-default 2)
  100.  
  101. (set #bad-kick "Man benötigt Kickstart 2.04 oder höher, um SysSpeed benutzen zu können!")
  102.  
  103. (set #copy-main "Kopiere SysSpeed...")
  104.  
  105. (set #copy-doc "Kopiere Dokumentation...")
  106.  
  107. (set #copy-reqtools-library "Kopiere reqtools.library ins Libs: ...")
  108.  
  109. (set #copy-powerpacker-library "Kopiere powerpacker.library ins Libs: ...")
  110.  
  111. (set #copy-xpkmaster-library "Kopiere xkpmaster.library ins Libs: ...")
  112.  
  113. (set #copy-shri-library "Kopiere shri.library ins Libs:Compressors/ ...")
  114.  
  115. (set #install-select
  116.     (cat
  117.         "Bitte wähle die einzelnen Teile des SysSpeed's, aus die"
  118.         " Du installieren möchtest:"
  119.     )
  120. )
  121.  
  122. (set #doc-select
  123.     (cat
  124.         "Bitte wähle die Dokumentationen aus die Du installieren"
  125.         " möchtest:"
  126.     )
  127. )
  128.  
  129. (set #item-main "SysSpeed Hauptprogramm")
  130.  
  131. (set #item-datas "SysSpeed Datenfiles")
  132.  
  133. (set #item-doc "Anleitung")
  134.  
  135. (set #item-libraries "Libraries")
  136.  
  137. (set #where-main "Wohin möchtest Du das SysSpeed-Hauptprogramm installieren?")
  138.  
  139. (set #where-main-help
  140.     (cat
  141.         "Dies ist das Zielverzeichnis vom SysSpeed-Hauptprogramm."
  142.     )
  143. )
  144.  
  145. (set #where-datas "Wohin möchtest Du die Daten von SysSpeed installieren?")
  146.  
  147. (set #where-datas-help
  148.     (cat
  149.         "Dies ist das Zielverzeichnis, von den daten die das"
  150.         " SysSpeed benötigt!"
  151.     )
  152. )
  153.  
  154. (set #where-doc "Wohin möchtest Du die Dokumentation installieren?")
  155.  
  156. (set #install-exit
  157.     (cat
  158.         "\nVielen Dank für die Installation von SysSpeed ..."
  159.     )
  160. )
  161.  
  162. (set #install-start
  163.     (cat
  164.         "\nWillkommen zur Installation von SysSpeed Version\n\n"
  165.         " .###       .###  \n"
  166.         "#####      #####  \n"
  167.         "  ###        ###  \n"
  168.         "  ###        ###  \n"
  169.         "  ###        ###  \n"
  170.         "  ###   ##   ###  \n"
  171.         "####### ## #######\n\n"
  172.         "geschrieben von LSi/ALiENDESiGN\n"
  173.         "Installscript 1.0 von cLYDE rADCLIFFE/ALiENDESiGN!\n"
  174.     )
  175. )
  176.  
  177.  )
  178. )
  179.  
  180.  
  181. ;============================== PROGRAM-START================================
  182.  
  183. (set @default-dest "")
  184.  
  185. ; Check Kickstart (>= v2.0) Version.
  186.  
  187. (if (< (/ (getversion) 65536) 37)
  188.     (abort #bad-kick)
  189. )
  190.  
  191. (message #install-start)
  192.  
  193. (set install-default 15)
  194.  
  195. (welcome)
  196.  
  197. (set install-files
  198.     (askoptions
  199.         (prompt    #install-select)
  200.         (help    #install-select-help "\n\n" @askoptions-help)
  201.         (choices
  202.             #item-main
  203.             #item-datas
  204.             #item-doc
  205.             #item-libraries
  206.         )
  207.         (default install-default)
  208.     )
  209. )
  210.  
  211. (set startup-files 0)
  212.  
  213. (if (BITAND install-files 1)
  214.     (
  215.     (set main-dest
  216.         (askdir
  217.             (prompt    #where-main)
  218.             (help    #where-main-help "\n\n" @askdir-help)
  219.             (default "SYS:")
  220.             )
  221.         )
  222.     )
  223. )
  224.  
  225. (if (BITAND install-files 2)
  226.     (set datas-dest
  227.         (askdir
  228.             (prompt    #where-datas)
  229.             (help    #where-datas-help "\n\n" @askdir-help)
  230.             (default "SYS:")
  231.         )
  232.     )
  233. )
  234.  
  235. ; Check + DefaultSet + Request Of Documentation(s)
  236.  
  237. (if (BITAND install-files 4)
  238.     (
  239.         (if (= @LANGUAGE "deutsch")
  240.             (set doc-default 2)
  241.             (set doc-default 1)
  242.         )
  243.         (set doc-files
  244.             (askoptions
  245.                 (prompt    #doc-select)
  246.                     (help    #doc-select-help "\n\n" @askoptions-help)
  247.                     (choices
  248.                         "SysSpeed... English"
  249.                         "SysSpeed... Deutsch"
  250.                     )
  251.                 (default doc-default)
  252.             )
  253.         )
  254.         (set doc-dest
  255.             (askdir
  256.                 (prompt    #where-doc)
  257.                 (help    @askdir-help)
  258.                 (default "SYS:")
  259.             )
  260.         )
  261.     )
  262. )
  263.  
  264.  
  265. ;========================== COPY STARTS HERE ===============================
  266.  
  267. ; Copy SysSpeed MainProgram
  268.  
  269. (if (BITAND install-files 1)
  270.     (
  271.         (copyfiles
  272.             (prompt #copy-main)
  273.             (source "SysSpeed")
  274.             (dest main-dest)
  275.             (files)
  276.             (infos)
  277.         )
  278.     (delete (tackon main-dest ".info"))
  279.     )
  280. )
  281.  
  282. (complete 14)
  283.  
  284. ; Copy DataFiles
  285.  
  286. (if (BITAND install-files 2)
  287.     (
  288.         (copyfiles
  289.             (prompt #copy-datas)
  290.             (source "SysSpeedData")
  291.             (dest (tackon datas-dest "SysSpeedData"))
  292.             (all)
  293.         )
  294.     )
  295. )
  296.  
  297. (complete 28)
  298.  
  299.  
  300. ;Copy selected Documentations
  301.  
  302. (if (BITAND install-files 4)
  303.     (
  304.         (set n 0)
  305.         (while
  306.             (set doc
  307.                 (select n
  308.                     "SysSpeed.doc"
  309.                     "SysSpeed.dok"
  310.                     ""
  311.                 )
  312.             )
  313.             (
  314.                 (if (IN doc-files n)
  315.                     (
  316.                         (if (exists (tackon "" doc))
  317.                             (copyfiles
  318.                                 (prompt #copy-doc)
  319.                                 (source (tackon "" doc))
  320.                                 (dest doc-dest)
  321.                                 (infos)
  322.                             )
  323.                         )
  324.                     )
  325.                 )
  326.                 (set n (+ n 1))
  327.             )
  328.         )
  329.     (delete (tackon doc-dest ".info"))
  330.     )
  331. )
  332.  
  333. (complete 42)
  334.  
  335. ;Copy reqtools.library to libs:
  336.  
  337. (if (BITAND install-files 8)
  338.     (
  339.         (copylib
  340.             (prompt #copy-reqtools-library)
  341.             (source "Libs/reqtools.library")
  342.             (dest "Libs:")
  343.         )
  344.         (complete 56)
  345.         (copylib
  346.             (prompt #copy-powerpacker-library)
  347.             (source "Libs/powerpacker.library")
  348.             (dest "Libs:")
  349.         )
  350.         (complete 70)
  351.         (copylib
  352.             (prompt #copy-xpkmaster-library)
  353.             (source "Libs/xpkmaster.library")
  354.             (dest "Libs:")
  355.         )
  356.         (complete 84)
  357.         (copylib
  358.             (prompt #copy-shri-library)
  359.             (source "Libs/compressors/xpkshri.library")
  360.             (dest "Libs:compressors")
  361.         )
  362.     )
  363. )
  364.  
  365. (complete 100)
  366.  
  367. (EXIT #install-exit)
  368.  
  369.